package com.bw.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bw.dao.UserDAO;
import com.bw.dto.Goods;
import com.bw.dto.User;
import com.bw.dto.Usergoods;
@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserDAO userDAO;
	
	public List dolist() {
		return userDAO.dolist();
	}

	public Boolean dodeng(User user) {
		return userDAO.dodeng(user);
	}

	public List<User> dogetlist() {
		return userDAO.dogetlist();
	}

	public Goods add(int gid) {
		return userDAO.add(gid);
	}

	public int doadd(Usergoods usergoods) {
		return userDAO.doadd(usergoods);
	}

}
